package com.moon.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import com.moon.utils.BaseController;

@Controller
public class HomeController extends BaseController {

    @RequestMapping("/")
    public String home() {
        return "wn32/home";
    }

    @RequestMapping("/openWork/{work}")
    public String openWork(@PathVariable("work") String work) {
        return "wn32/" + work;
    }

    @RequestMapping({"/success", "/info"})
    public String success() {
        return "wn32/success";
    }

    @RequestMapping("/login")
    public String login(){
        return "wn32/login";
    }

}